

#include <material/materialeditor.h>


cceMaterialEditorAbstract::cceMaterialEditorAbstract(QWidget *parent)
  : QWidget (parent)
  , _manager(0)
{
}

void cceMaterialEditorAbstract::SetChanged(bool changed)
{
	if (changed)
    {
      emit NameChanged(GetName() + "*");
    }
  else
    {
      emit NameChanged(GetName());
    }
}

QString cceMaterialEditorAbstract::GetEditorName(const QString &name)
{
  QStringList parts = name.split(".");
  parts.pop_back();
  return parts.join(".");
}

cceMaterialOverviewAbstract::cceMaterialOverviewAbstract (QWidget *parent)
  : QWidget (parent)
{
}
